<template>
	<view class="load" v-if="!load">
		<u-loading-icon mode="circle" inactive-color="#fff" text="正在加载..." vertical></u-loading-icon>
	</view>
	<view v-else>
		<view style="height: 100%; overflow: auto">
			<view>
				<view class="page_top" id="navBox" :style="{
					'background': topNav ? '#eceff9' : 'transparent',
					'z-index': 199,
				}">
					<top-status id="navTime"></top-status>
					<view class="tabs" :style="{
						'background': topNav ? '#eceff9' : 'transparent',
						'z-index': 199,
					}">
						{{ topNav ? '我的' : '' }}
					</view>
				</view>
				<view class="bg">
					<!-- <image src="https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/172135664829433.png"
						mode="aspectFill"></image> -->
				</view>
			</view>
			<view :style="{ height: navHeight + navTime + 'px' }"></view>
			<view class="wap">
				<view class="user_info" @click="nav_to('/pages/user/user_edit')">
					<view class="cover">
						<image v-if="user.IsAuth == 0" class="userimg" :src="ossPath + '/upload/1722996894207462.png'">
						</image>
						<image v-else class="userimg" :src="user.HeadImgUrl" mode="aspectFill" />
					</view>
					<view class="info" v-if="user.IsAuth == 1">
						<view class="info_main">
							<view class="info_box">
								<view class="name">
									<view class="f1 c1 f1 c1 name_text u-line-1">{{ $util.entitiesToUtf16(user.Name) }}
									</view>
								</view>

								<!-- <view class="info_icon">
									<view class="icon_">
										<image
											:src="'https://wavestation.oss-cn-shenzhen.aliyuncs.com/upload/1717669109815901.png'"
											mode="widthFix"></image>
									</view>
								</view> -->
							</view>
							
						</view>
						<view class="headIconBox">
							<view class="erCodeBox"  @click.stop="nav_to('/pages/message/msgList')">
								<view class="imgBox">
									<image class="erCodeImg"
										src="https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/1744882100853356.png"
										mode="widthFix"></image>
								</view>
								<view class="iconText">消息</view>
							</view>
							<!-- <view class="erCodeBox" style="margin-left:24rpx" @click.stop="nav_to('/pages/user/placard')">
								<view class="imgBox">
									<image class="erCodeImg"
										src="https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/1741249199766949.png"
										mode="widthFix" style="width: 36rpx;"></image>
								</view>
								<view class="iconText">邀请码</view>
							</view> -->
						</view>

						<!-- <view class="info_btn" v-if="isShop">
							<view class="btn_cell" @click.stop="nav_to('/pages/store/store')">
								我是商户
							</view>
						</view> -->
					</view>
				</view>
			</view>
			
			<!-- <view class="vipCenter">
				<view class="vip_cell" @click="nav_to('/pages/user/vipPay/vipPay')">
					<view class="vip_titbox">
						<view class="icon">
							<image src="https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/174263308582297.png" mode="aspectFill"></image>
						</view>
						<view class="vipbox_tit">
							会员中心
						</view>
					</view>
					<view class="vip_litbox">
						<view class="vipbox_lit">
							专享会员福利最高8.8折
						</view>
						<image src="https://golfdate.oss-cn-shenzhen.aliyuncs.com/upload/1711011951088796.png" mode="widthFix"></image>
					</view>
				</view>
			</view> -->
			
			
			<view class="myOrderBox">
				<view class="myOrderHead">
					<view class="myOrderTitle">我的订单</view>

					<view class="setAddress" @click="nav_to('/pages/Myaddress/selectAddress')">设置我的地址</view>
				</view>
				<view class="myOrderItem">
					<view class="myOrderInfo" v-for="(item, index) in myOrder" :key="index" @click="goOrder(item)">
						<image class="myuseimg" :src="item.Icon"></image>
						<view class="usetext">{{ item.Name }}</view>
						<view class="unReadNum" v-if="item.count">{{ item.count }}</view>
					</view>
				</view>
				<!-- <view class="gzhBox" v-if="gzhInfo.IsShow == 1" @click="nav_to('/pages/dynamic/official?url='+ encodeURIComponent(gzhInfo.Url))">
					<view class="gzhLogo">
						<image :src="gzhInfo.Logo" mode="aspectFill" />
					</view>
					<view class="gzhText">
						<view class="gzhTitle">{{ gzhInfo.Title }}</view>
						<view class="gzhTips">{{ gzhInfo.Tips }}</view>
					</view>
					<view class="gzhBtn">
						<view class="gzhGo">去关注</view>
						<image class="rimg" :src="ossPath + '/upload/1711011951088796.png'" mode="widthFix">
						</image>
					</view>
				</view> -->
			</view>
			
			<!-- <view class="points_body">
				<view class="points_titleBox">
					我的积分
				</view>
				<view class="points_cell">
					<view class="points_icon">
						<image src="https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/1747810143234881.png" mode="aspectFill"></image>
					</view>
					<view class="points_cout">
						1532
					</view>
					
				</view>
			</view> -->

			<view class="nav_list">
				<view class="nav_main">
					<block v-for="(item, index) in myUser" :key="index">
						<view class="nav_item" v-if="item.show" @click="goNextPath(item)">
							<view class="nav_box">
								<image class="nav_img" :src="item.Icon" mode="widthFix"></image>
								<view class="nav_text">{{ item.Name }}</view>
							</view>
							<view class="nav_litbox">
								<view class="icon_body" v-if="item.Name == '我的勋章'">
									<view class="icon_cell" v-if="Medal.Food_Medal_Icon">
										<image :src="Medal.Food_Medal_Icon" mode="aspectFill"></image>
									</view>
									<view class="icon_cell" v-if="Medal.Help_Medal_Icon">
										<image :src="Medal.Help_Medal_Icon" mode="aspectFill"></image>
									</view>
									<view class="icon_cell" v-if="Medal.Love_Medal_Icon">
										<image :src="Medal.Love_Medal_Icon" mode="aspectFill"></image>
									</view>
								</view>
								<view class="unReadNum1" v-if="item.count">{{ item.count }}</view>
								<image class="rimg" :src="ossPath + '/upload/1711011951088796.png'" mode="widthFix">
								</image>
							</view>

						</view>
					</block>
					<!-- <view class="nav_item" @click="nav_to('/pages/store/store_list')" v-if="IsManager">
						<view class="nav_box">
							<image class="nav_img"
								:src="'https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/1741595737649206.png'"
								mode="widthFix"></image>
							<view class="nav_text">{{ '商家列表' }}</view>
						</view>
						<view class="nav_litbox">

							<view class="unReadNum1" v-if="item.count">{{ item.count }}</view>
							<image class="rimg" :src="ossPath + '/upload/1711011951088796.png'" mode="widthFix">
							</image>
						</view>
					</view> -->
				</view>
			</view>
			<!-- <swiper class="shop_home" v-if="home_img.length" :indicator-dots="true" :autoplay="true" :interval="3000"
				:duration="1000" indicator-active-color="#ff531c">
				<swiper-item v-for="(item, index) in home_img" :key="index" @click="gotoshop(item)">
					<image class="home_img"
						:src="item.Banner ? item.Banner : 'https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/173328390102868.png'">
					</image>
				</swiper-item>
			</swiper> -->
			<BtmLogo></BtmLogo>
			<view style="height: 20rpx;"></view>
			<!-- <view class="shop_home">
				<image class="home_img" :src="home_img?home_img[0].Banner:'https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/173328390102868.png'" @click="gotoshop"></image>
			</view> -->
			<!-- <view class="tips">小聚科技支持 <text @click="telFun('13926465151')">13926465151</text></view> -->
		</view>
	</view>
</template>

<script>
const { safeArea, windowHeight } = uni.getSystemInfoSync();
import topStatus from '@/components/topStatus/topStatus.vue';
export default {
	tabTop: 0,
	components: {
		topStatus,
	},
	data() {
		return {
			topNav: false,
			load: false,
			user: {
				IsAuth: 0,
			},
			Taglist: [], // 标签列表
			myOrder: [
				// {
				// 	Icon: 'https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/1721379554197724.png',
				// 	Name: '全部',
				// 	goto: '/pages/order/orderlist',
				// 	id: 1,
				// 	index: 99,
				// 	count: 0,
				// },
				{
					Icon: 'https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/1722592656159492.png',
					Name: '待付款',
					goto: '/pages/order/orderlist',
					id: 2,
					index: 0,
					count: 0,
				},
				{
					Icon: 'https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/1723189536915613.png',
					Name: '待发货',
					goto: '/pages/order/orderlist',
					id: 7,
					index: 1,
					count: 0,
				},
				{
					Icon: 'https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/17213795999181117.png',
					Name: '待签收',
					goto: `/pages/user/message/notice`,
					id: 3,
					index: 3,
					count: 0,
				},
				{
					Icon: 'https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/1721379554197724.png',
					Name: '评价中心',
					goto: '/pages/shop/evaluateCenter',
					id: 8,
					index: 0,
					count: 0,
				},
				{
					Icon: 'https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/17213796221051102.png',
					Name: '已完成',
					goto: '/pages/order/orderlist',
					id: 4,
					index: 4,
					count: 0,
				},
				// {
				// 	Icon: 'https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/1722592461770214.png',
				// 	Name: '已取消',
				// 	goto: '/pages/order/orderlist',
				// 	id: 5,
				// 	index: -1,
				// 	count: 0,
				// },
				// ,
				// {
				// 	Icon: 'https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/17213796221051102.png',
				// 	Name: '我收到的',
				// 	goto: '/pages/order/orderlist',
				// 	id: 6,
				// 	index:88,
				// }
			],
			myUser: [
				// {
				// 	Icon: 'https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/174503184341857.png',
				// 	Name: '收货地址',
				// 	ispath: true,
				// 	goto: '/pages/Myaddress/selectAddress',
				// 	count: 0
				// },
				{
					Icon: 'https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/1747903433804936.png',
					Name: '代理申请记录',
					ispath: true,
					goto: '/pages/vip/myVipRecord',
					count: 0,
					show:true,
				},
				{
					Icon: 'https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/1721379646753538.png',
					Name: '代理中心',
					ispath: true,
					goto: '/pages/vip/vipPay',
					count: 0,
					show:false,
				},
				{
					Icon: 'https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/17213796592201312.png',
					Name: '联系客服',
					ispath: false,
					goto: ``,
					count: 0,
					show:true,
				},
				{
					Icon: 'https://giftapp.oss-cn-shenzhen.aliyuncs.com/upload/1732180134298460.png',
					Name: '后台管理',
					ispath: true,
					goto: '/pages/store/store',
					count: 0,
					show:false
				}

			],
			ossPath: null,
			height: '',
			navHeight: '',
			navTime: '',
			unReadNum: 0,
			listUnReadNum: [],
			isShop: false,
			IsOpenAuth: 0,
			home_img: [],
			Medal: {},
			IsManager: false,
			isMyshopList: false,
			gzhInfo: {},
		};
	},
	computed: {
		
	},
	onLoad() {
		this.$nextTick(async () => {
			const h = await this.getHeight('#navBox');
			this.navHeight = h - 3;
			this.navTime = await this.getHeight('#navTime');
			this.height = windowHeight - h - 40;
		});
		this.load = true;
		this.ossPath = this.$ossPath;

		this.getMyCount();
		this.AppAuth()
		this.shopbanner()
		this.getGZinfo()
	},
	onReady() { },
	onShow() {
		this.IsManagerFun()
		this.getUserInfo();
		this.IsShopManage()
		this.getMyListCount()
		this.GetUserMedal()
		this.getMyCartNum()
	},

	methods: {

		async IsManagerFun() {
			let res = await this.$api.post('Company/IsCompanyAdmin');
			res.data = true
			if (res.data) {
				this.IsManager = res.data;
				// this.getMyUserShowFun('代理中心',this.IsManager)
			}
		},
		getMyUserShowFun(name,status){
			let index = this.myUser.findIndex(item=>item.Name==name)
			this.myUser[index].show = status
		},
		async GetUserMedal() {
			let res = await this.$api.post('/User/GetUserMedal')
			this.Medal = res.data
		},
		async shopbanner() {
			let res = await this.$api.post('Banner/GetBanner', {
				PageKey: 'my_bottom',
			})
			if (res.code == 0) {
				this.home_img = res.data
			}
		},
		gotoshop(item) {
			let url = item.GoUrl
			if (this.isShop && url == '/pages/store/mer_add') {
				this.$pv.msg('已申请')
			} else {
				this.nav_to(url)
			}
		},
		async AppAuth() {
			let res = await this.$api.post('Common/AppAuth')
			if (res.code == 0) {
				this.IsOpenAuth = res.data ? res.data.IsOpenAuth : 0
				if (res.data.IsOpenAuth == 0) {
					for (let i = 0; i < this.myUser.length; i++) {
						if (this.myUser[i].Name == '商家入驻') {
							this.myUser.splice(i, 1)
						}
					}
				}
			}
		},
		async IsShopManage() {
			let res = await this.$api.post('/Shops/IsShopManage')
			this.isShop = res.data || false
			// this.isShop = true
			if(this.isShop){
				this.getMyUserShowFun('后台管理',this.isShop)
			}
		},
		async getUserInfo() {
			let res = await this.$api.post('/User/GetUserInfo', { ID: uni.getStorageSync('user').UserID });
			this.user = res.data;
			if(res.code==0){
				// this.user.UserType='通用户'
				if(this.user.UserType!='普通用户'){
					this.getMyUserShowFun('代理中心',true)
				}
			}
			
		},
		async getMyCount() {
			for (var i = 0; i < this.myOrder.length; i++) {
				if (i == 0 || i == 1 || i == 2) {
					this.myOrder[i].count = await this.getUnread(this.myOrder[i].index);
				}
			}
			this.MyEvalOrders()
		},
		async getMyListCount() {
			let res = await this.$api.post('/Member/GetUserData')
			// this.myUser.forEach((item,index)=>{

			// })
			let con = res.data
			// this.myUser[1].count = con.CustomerNum
			// this.myUser[2].count = con.PendingPayOrderNum
		},
		async getUnread(Status) {
			let res = await this.$api.post('/Order/MyOrders', {
				PageIndex: 1,
				PageSize: 999,
				Status,
			});
			return res.data.length || 0;
		},
		async MyEvalOrders() {
			let res = await this.$api.post('/Order/MyEvalOrders', {
				PageIndex: 1,
				PageSize: 999,
				IsEval: 0
			})
			if (res.code == 0) {
				let EvaList = res.data
				this.myOrder[3].count = EvaList.length || 0
			} else {
				this.$pv.msg(res.message)
			}

		},
		getHeight(id) {
			return new Promise((resolve) => {
				let query = uni.createSelectorQuery().in(this);
				query.select(id).boundingClientRect();
				query.exec((res) => {
					resolve(res[0].height);
				});
			});
		},
		telFun(tel) {
			uni.makePhoneCall({
				phoneNumber: tel,
				success() {
					console.log('拨号成功');
				},
				fail(err) {
					console.error('拨号失败:', err);
				},
			});
		},
		goNextPath(item) {
			if (item.ispath) {
				this.nav_to(item.goto);
			} else if (item.Name == '联系客服') {
				this.telFun(item.goto)
			}
			if(!item.goto){
				this.$pv.msg('暂未开放')
			}
		},
		// 跳转我的订单页面
		goOrder(item) {
			if (item.id == 8) {
				this.nav_to('/pages/shop/evaluateCenter')
				return
			}
			this.nav_to(`/pages/order/orderList?index=${item.index}`);
		},
		// 获取公众号信息
		async getGZinfo() {
			let res = await this.$api.post('/Common/GetGZH');
			this.gzhInfo = res.data;
		},
	},
};
</script>

<style lang="scss">
page {
	background-color: #f6f6f6;
}

.nav_item_icon {
	margin-right: 20rpx;
}

button {
	text-align: left !important;
	height: 40rpx;
	display: flex;
	align-items: center;
	background-color: transparent;
}

button::after {
	border-radius: 0 !important;
	border: 0 !important;
}

.f2 {
	font-size: 34rpx;
}

.f1 {
	font-size: 34rpx;
}

.shop_home {
	width: 702rpx;
	height: 120rpx;
	margin: 16rpx auto;

	swiper-item {
		width: 100%;
		height: 100%;
		border-radius: 16rpx;
		overflow: hidden;
	}

	.home_img {
		width: 100%;
		height: 100%;
	}
}

.user_info {
	padding-top: 44rpx;
	display: flex;

	.cover {
		flex-shrink: 0;
		height: 112rpx;
		width: 112rpx;
		margin-right: 10rpx;
		position: relative;

		// margin-left: 26rpx;
		.userimg {
			height: 100%;
			width: 100%;
			border-radius: 50%;
		}
	}

	.name {
		display: flex;
		align-items: center;
		margin-bottom: 10rpx;

		.name_text {
			// width: 180rpx;
			// max-width: 180rpx;
			margin-right: 5rpx;
			font-weight: bold;
			font-size: 36rpx;
			color: #333333;
		}
	}

	.info {
		padding-left: 20rpx;
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: space-between;

		.info_btn {
			.btn_cell {
				padding: 12rpx 30rpx;
				background: linear-gradient(98deg, #FFAD26 0%, #FE4E01 100%);
				border-radius: 30rpx;
				font-weight: bold;
				font-size: 24rpx;
				color: #FFFFFF;
			}
		}

		.info_main {
			.info_box {
				flex: 0.5;
				display: flex;

				.taglist {
					display: flex;
					align-items: center;
					flex-wrap: wrap;
				}

				.tag {
					border-radius: 50rpx;
					color: #111;
					font-size: 22rpx;
					padding: 4rpx 12rpx;
					margin-right: 10rpx;
					margin-bottom: 10rpx;
					border: 2rpx solid #999999;
				}

			}

			.info_litid {
				display: flex;
				align-items: center;
				.litid_ {
					width: fit-content;
					height: 44rpx;
					padding: 0 12rpx;
					background: linear-gradient(90deg, rgba(250, 113, 52, 0.05) 0%, rgba(253, 151, 74, 0.21) 100%);
					border-radius: 24rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					font-size: 24rpx;
					color: #FF6030;
					margin-left: -4rpx;
				}
				.litid_green{
					background: linear-gradient(90deg, rgba(119, 195, 144, 0.1) 0%, rgba(109, 194, 137, 0.4) 100%);
					color: #46c868;
				}
				.litid_text {
					font-size: 24rpx;
					color: #FF6030;

					text {
						font-size: 24rpx;
						color: #FF6030;
						text-decoration: underline;
					}
				}
			}

			.info_icon {
				display: flex;
				align-items: center;
				justify-content: space-between;

				.icon_ {
					padding: 10rpx;
					width: 50rpx;
					height: 50rpx;
					display: flex;
					align-items: center;
					justify-content: center;

					image {
						width: 90%;
						height: 90%;
					}
				}
			}

			.icon_body {
				display: flex;
				align-items: center;

				.icon_cell {
					width: 32rpx;
					height: 40rpx;
					margin-right: 16rpx;

					image {
						width: 100%;
						height: 100%;
					}
				}
			}
		}

		.headIconBox {

			display: flex;
			align-items: center;
			margin-right: 24rpx;
			.erCodeBox {
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				
				.imgBox {
					width: 46rpx;
					height: 46rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					>image {
						width: 100%;
						height: 100%;
						display: block;
					}
				}

				.iconText {
					font-size: 20rpx;
				}
			}
		}



	}
}

.myOrderBox {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
	background-color: #fff;
	border-radius: 16rpx;
	width: 702rpx;
	// height: 224rpx;
	margin: 20rpx 24rpx;
	position: relative;
	padding: 20rpx 0;

	.myOrderHead {
		display: flex;
		justify-content: space-between;
		width: 100%;
		font-size: 32rpx;
		padding: 0 30rpx;
		margin-bottom: 20rpx;

		.myOrderTitle {
			font-weight: bold;
		}

		.setAddress {
			color: #4C310C;
			font-size: 24rpx;
		}
	}

	.myOrderItem {
		display: flex;
		width: 100%;

		.myOrderInfo {
			position: relative;
			text-align: center;
			width: 25%;

			.myuseimg {
				width: 56rpx;
				height: 56rpx;
			}

			.usetext {
				font-size: 24rpx;
				color: #333333;
			}
		}
	}
	.gzhBox{
		width: 96%;
		margin: 0 auto;
		margin-top: 14rpx;
		display: flex;
		align-items: center;
		padding: 20rpx;
		background-color: #f9f9f9;
		border-radius: 16rpx;
		.gzhLogo{
			width: 88rpx;
			height: 88rpx;
			border-radius: 50%;
			image{
				width: 100%;
				height: 100%;
				display: block;
			}
		}
		.gzhText{
			flex: 1;
			padding-left: 10rpx;
			.gzhTitle{
				font-size: 24rpx;
				color: #3e3e3e;
			}
			.gzhTips{
				font-size: 24rpx;
				color: #646464;
			}
		}
		.gzhBtn{
			width: 140rpx;
			display: flex;
			align-items: center;
			justify-content: flex-end;
			.gzhGo{
				font-size: 26rpx;
				color: #949494;
			}
			.rimg{
				width: 32rpx;
				display: block;
			}
		}
	}
}

.nav_list {
	.nav_main {
		border-radius: 8rpx;
		overflow: hidden;
		width: 702rpx;
		margin: 0 24rpx;
		margin-bottom: 20rpx;
	}

	.nav_item {
		height: 110rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		box-sizing: border-box;
		padding: 0rpx 24rpx;
		background-color: #fff;
		position: relative;

		.nav_box {
			display: flex;
			align-items: center;
			flex: 1;
			position: relative;

			.diyMargin {
				right: 0;
				top: 50%;
				transform: translateY(-50%);
			}

			.nav_item_icon {
				width: 48rpx;
				height: 48rpx;
				margin-right: 24rpx;
			}

			.nav_img {
				width: 56rpx;
				height: 56rpx;
				margin: 0 20rpx 0 5rpx;
			}

			.nav_text {
				font-size: 28rpx;
				color: #333333;
			}

			.diyInvite {
				position: relative;

				&::after {
					content: '赚挥豆';
					position: absolute;
					right: -110rpx;
					top: -10rpx;
					background-color: #fc201c;
					font-size: 22rpx;
					color: white;
					padding: 5rpx 15rpx;
					border-radius: 25rpx 25rpx 25rpx 0;
				}
			}
		}



		&::after {
			position: absolute;
			bottom: 0;
			right: 0;
			left: 0;
			height: 2rpx;
			content: '';
			transform: scaleY(0.6);
			// background-color: #404040;
		}

		.new_ad {
			color: #ffff00;
		}

		.con {
			flex: 1;
			// padding-left: 12rpx;
		}

		.icon {
			height: 40rpx;
			width: 40rpx;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}

	.nav_litbox {
		display: flex;
		align-items: center;

		.unReadNum1 {
			font-size: 26rpx;
			color: #999;
			display: flex;
			justify-content: center;
			align-items: center;
		}

		.rimg {
			margin-left: 20rpx;
			width: 32rpx;
			height: 32rpx;
		}

		.icon_body {
			display: flex;
			align-items: center;

			.icon_cell {
				width: 32rpx;
				height: 40rpx;
				margin-right: 16rpx;

				image {
					width: 100%;
					height: 100%;
				}
			}
		}
	}

}

.mt40 {
	margin-top: 40rpx;
}

.unReadNum {
	max-width: 48rpx;
	min-width: 32rpx;
	height: 32rpx;
	position: absolute;
	right: 20rpx;
	top: -10rpx;
	font-size: 22rpx;
	background-color: #fc201c;
	color: white;
	padding: 5rpx;
	border-radius: 30rpx;
	display: flex;
	justify-content: center;
	align-items: center;
}

.page_top {
	position: fixed;
	top: 0;
	left: 0;
	width: 750rpx;
	box-sizing: border-box;
	background: transparent;
	z-index: 9999;

	.tabs {
		height: 48px;
		display: flex;
		font-size: 32rpx;
		align-items: center;
		justify-content: center;
		font-weight: bold;

		image {
			width: 52rpx;
			height: 52rpx;
		}
	}
}

.bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 40vh;
	z-index: -1;
	// background-image: linear-gradient(to bottom,#d5e3fa 0%,#f6f6f6 100%);
	background: linear-gradient(180deg, #e65a8b 0%, #f692b5 40%, #F6F6F6 100%);
	background: linear-gradient(180deg, #ceaf85 0%, #fef0bc 40%, #F6F6F6 100%);
	image {
		width: 100%;
		height: 100%;
	}
}

.tips {
	position: fixed;
	left: 50%;
	bottom: 40rpx;
	transform: translate(-50%, 0);
	font-size: 26rpx;
	color: #999999;
	text-align: center;

	text {
		margin-left: 10rpx;
		font-size: 26rpx;
		color: #55aaff;
	}
}

.vipCenter{
	.vip_cell{
		height: 80rpx;
		border-radius: 16rpx;
		background-image: linear-gradient(to right,#ffeddb 0%,#ffe3c6 100%);
		margin: 14rpx 24rpx;
		display: flex;
		overflow: hidden;
		.vip_titbox{
			display: flex;
			align-items: center;
			background-image: linear-gradient(to right,#ffefce 0%,#ffd2b1 100%);
			border-radius: 0 0 24rpx 0;
			padding: 0 20rpx;
			.icon{
				width: 36rpx;
				height: 36rpx;
				margin-right: 12rpx;
				image{
					width: 100%;
					height: 100%;
				}
			}
			.vipbox_tit{
				font-weight: bold;
				font-size: 28rpx;
				color: #924800;
				letter-spacing: 2rpx;
			}
		}
		.vip_litbox{
			padding: 0 20rpx;
			flex: 1;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.vipbox_lit{
				font-size: 26rpx;
				color: #d46b08;
			}
			image{
				width: 32rpx;
				height: 32rpx;
			}
		}
	}
}

.points_body{
	background-color: #fff;
	border-radius: 16rpx;
	width: 702rpx;
	margin: 20rpx 24rpx;
	padding: 20rpx 30rpx;
	.points_titleBox{
		font-weight: bold;
		font-size: 32rpx;
		color: #333;
		margin-bottom: 12rpx;
	}
	.points_cell{
		display: flex;
		align-items: center;
		justify-content: center;
		.points_icon{
			width: 38rpx;
			height: 38rpx;
			margin-right: 8rpx;
			image{
				width: 100%;
				height: 100%;
			}
		}
		.points_cout{
			font-size: 32rpx;
			font-weight: bold;
			color: #111;
		}
		
	}
}
</style>
